package com.yihuan.service;

import com.yihuan.entity.CountryEntity;
import com.yihuan.mapper.CountryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author:梦醒
 * Date: 2022/1/13 21:23
 * Dream:
 * 信言不美，美言不信。
 * 善者不辩，辩者不善。
 * 知者不博，博者不知。
 * Function:
 */
@Service
public class CountryService {
    @Resource
    private CountryMapper countryMapper;
    
    /**
     * 按省份查询城市
     *
     * @param countryEntity
     * @return
     */
    public List<CountryEntity> findByCountry(CountryEntity countryEntity) {
        return countryMapper.findByCountry(countryEntity);
    }
}
